@import url('./variable.less');
@import url('./mixins.less');
@deep:~'>>>';

.plTableBox .el-table__body tr.current-row>td {
  background-color: @bg-color-primary;
}

.mris-basenav {
  .el-tabs__header {
    margin-bottom: 0px !important;
  }
}

.info-cont {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid @uni-border-color-td;
  box-sizing: border-box;
  font-size: @font-size-ctent;
  &__header {
    padding: 0 10px;
    position: relative;
    padding: @spacing-col-mini;
    background: @color-info;
    &:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 1px;
      background: @uni-border-color-td;
    }
  }
  &__content {
    flex: 1;
    width: 100%;
    overflow-y: scroll;
    .content {
      position: relative;
      padding: 5px 10px 10px;
      &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        // height: 1px;
        background: #EBEEF5;
      }
      &__item {
        font-size: @font-size-mini;
        line-height: 30px;
      }
    }
  }
  &__footer {
    line-height: 35px;
    .el-button+.el-button {
      margin-left: 0 !important;
    }
  }
  &__tips {
    font-size: @font-size-mini;
    font-weight: normal;
    vertical-align: middle;
    &__icon {
      font-size: @font-size-mini;
      vertical-align: middle;
    }
  }
}

// 新的布局
.mris-wrapper {
  height: 100%;
  box-sizing: border-box;
  padding: @spacing-col-base @spacing-row-base;
  background: @bg-color;
  &.none {
    padding: 0px;
  }
  overflow-y: auto;
  &.small {
    width: 680px;
  }
  .el-table {
    .el-button {
      padding: 0 2px !important;
    }
    .el-button+.el-button {
      margin-left: 0;
    }
    .el-tag+.el-tag {
      margin-left: @spacing-row-mini;
    }
    .el-dropdown {
      [class^=el-icon-] {
        margin-left: -4px;
        font-size: @icon-size-mini;
      }
    }
  }
  // 根据布局区分
  .mris-flex {
    height: 100%;
    display: flex;
    overflow: hidden;
    &.column {
      flex-direction: column;
    }
  }
  .mris-shrink0 {
    flex-shrink: 0;
    position: relative;
  }
  .mris-flex1 {
    flex: 1;
    overflow: hidden;
    position: relative;
  }
  .mris-margin-right {
    margin-right: @spacing-row-sm
  }
  .mris-margin-left {
    margin-left: @spacing-col-sm;
  }
  .mris-margin-top {
    margin-top: @spacing-col-sm;
  }
  .mris-margin-bottom {
    margin-bottom: @spacing-col-sm;
  }
  .mris-padding-bottom {
    padding-bottom: @spacing-col-sm;
  }
  .mris-summary {
    // height: 300px;
    background-color: @bg-color-thead;
    border-radius: @border-radius-base;
    padding: @spacing-col-mini @spacing-row-sm;
    box-sizing: border-box;
    overflow-y: auto;
    line-height: 1.8;
    p {
      margin: 0;
    }
    &.middle {
      height: 240px;
    }
    &.small {
      height: 200px;
    }
  }
  // 根据功能区分
  .mris-echart-wrapper {
    position: relative;
    .mris-echart-down {
      position: absolute;
      top: 6px;
      right: 0;
      font-size: 20px;
      cursor: pointer;
      z-index: 99;
      color: #767676;
    }
    .mris-echart-tools {
      position: absolute;
      top: 0px;
      right: 22px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      .el-select {
        width: auto;
        .el-input {
          width: 118px;
          margin-left: @spacing-row-sm;
        }
      }
    }
  }
  .mris-echart-canvas {
    height: 300px;
    &.middle {
      height: 240px;
    }
    &.small {
      height: 180px;
    }
    &.large {
      height: 400px;
    }
    &.down {
      height: 600px;
    }
    &.super {
      height: 700px;
    }
  }
  .mris-page {
    text-align: right;
  }
  .mris-tableft {
    height: 100%;
    .el-tabs__item {
      height: @height-tab;
      &:last-child {
        border-right: none;
      }
    }
    .el-tabs__content {
      flex: 1;
      padding: 0px;
      display: flex;
      flex-direction: column;
      .el-tab-pane {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
    }
  }
}

// 提示
.ulink-table-tips {
  box-sizing: border-box;
  background: @bg-color-thead;
  padding: @spacing-col-mini @spacing-row-base;
  line-height: 0.8;
  &.line-height-base{
    line-height: 1.6;
  }
}

// 搜索
.ulink-table-search {
  @height-input: @height-button;
  @width-input: 126px;
  @width-label: 56px;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-flow: wrap;
  //background: @bg-color;
  .search-left {
    max-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-flow: wrap;
    margin-bottom: -@spacing-col-mini;
  }
  .search-right {
    flex-shrink: 0;
    box-sizing: border-box;
    margin-right: -@spacing-row-base;
  }
  .search-item {
    &.isNoLabel {
      .search-wrap {
        height: 0px;
      }
    }
    &.widthauto {
      .el-input {
        width: 100% !important;
      }
    }
    .search-wrap {
      display: flex;
      align-items: center;
      margin-right: @spacing-row-base;
      margin-bottom: @spacing-col-mini;
      .search-label {
        margin-right: @spacing-row-mini;
        min-width: @width-label;
        line-height: @height-input;
        color: @text-color-dark-grey;
        font-size: @font-size-mini;
        // font-weight: bold;
      }
      .search-content {
        flex: 1;
        // 自定义select
        &.checkbox {
          display: flex;
          flex-direction: row;
          align-items: center;
          background: @bg-color;
          .checkbox-item {
            height: @height-input;
            line-height: @height-input;
            margin-right: @spacing-row-base;
            padding: 0 @spacing-row-base;
            border-radius: @border-radius-sm;
            cursor: pointer;
            &.active {
              font-weight: bold;
              background: @color-primary;
              color: @text-color-inverse;
            }
          }
        }
        .el-date-editor.el-input__inner {
          height: @height-input;
          line-height: @height-input;
        }
        // 输入框
        .el-input {
          width: @width-input;
          .el-input__inner {
            height: @height-input;
            line-height: @height-input;
            padding-right: @spacing-col-sm * 2;
          }
          .el-input__icon {
            line-height: @height-input;
          }
        }
        .has-auto-width {
          .el-input {
            width: auto !important;
          }
        }
        .el-input__suffix {
          right: -2px;
        }
        // 勾选框
        .el-checkbox__label {
          font-size: @font-size-ctent;
          padding-left: @spacing-row-mini;
        }
        // 日期选择
        .el-date-editor {
          .el-input__icon {
            width: 16px;
          }
          &.el-input__inner {
            padding-right: 0px;
            .el-range-input {
              width: 120px;
            }
          }
          &.mini {
            &.el-input__inner {
              width: auto;
            }
          }
        }
      }
    }
    &.search-btns, &.search-extend {
      .el-button {
        height: @height-input;
        line-height: @height-input;
        padding: 0 @spacing-row-sm;
      }
    }
    &.search-btns {
      .el-button+.el-button {
        margin-left: @spacing-row-mini;
      }
    }
    &.search-extend {
      flex: 1;
      display: flex;
      flex-direction: row-reverse;
      .search-wrap {
         margin-right: 0;
      }
      .el-button {
        margin-left: @spacing-row-base;
      }
    }
  }
}

// 上报前病案
.align-right.ulink-table-search {
  justify-content: flex-end;
  .search-item.search-extend {
    flex: none;
  }
  .search-wrap .search-content .el-input {
    width: 120px !important;
  }
  .el-date-editor.el-input__inner {
    width: 250px !important;
  }
}

// 未知？
.el-table__body-wrapper {
  .el-table__empty-block {
    border-bottom: none !important;
  }
}

// 表格
.ulink-table-body {
  width: 100%;
  flex: 1;
  padding: @spacing-col-base @spacing-row-base;
  box-sizing: border-box;
  overflow: hidden;
  background: @bg-color;
  display: flex;
  flex-direction: column;
  position: relative;
  .el-button+.el-button {
    margin-left: 0px;
  }
  .el-button {
    padding: 0 8px!important;
    height: 26px!important;
    line-height: 26px!important;
  }
  &.ulink-table--wrap {
    .ulink-table-base.el-table .cell {
      white-space: normal;
    }
  }
}
// 表格布局
.ulink-table-wrapper {
  background: #fff;
  @height-input: @height-button;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  .el-table__empty-text {
    width: auto;
  }
  .el-table__fixed-right::before, .el-table__fixed::before {
    background-color: transparent;
  }
  // 标题栏
  .ulink-table-head {
    height: @height-menu;
    border-bottom: 1px solid @uni-border-color-td;
    background-color: @bg-color-thead;
    padding: 5px 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9;
    flex-shrink: 0;
    .search-btns {
      font-size: 0;
      .el-button {
        margin-left: @spacing-row-mini;
      }
    }
    .el-button {
      height: @height-input;
      line-height: @height-input;
      padding: 0 @spacing-row-sm;
    }
  }
  // 搜索
  .ulink-table-search {
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-flow: wrap;
    // margin-bottom: -@spacing-col-mini;
    padding: @spacing-col-base @spacing-row-base 0;
    background: @bg-color;
    // margin-top: 1px;
    @width-input: 126px;
    @width-label: calc(@font-size-ctent * 4);
    .search-item {
      .search-wrap {
        display: flex;
        align-items: center;
        margin-right: @spacing-row-base;
        margin-bottom: @spacing-col-mini;
        .search-label {
          margin-right: @spacing-row-mini;
          min-width: @width-label;
          line-height: @height-input;
        }
        .search-content {
          flex: 1;
          // 自定义select
          &.checkbox {
            display: flex;
            flex-direction: row;
            align-items: center;
            background: @bg-color;
            .checkbox-item {
              height: @height-input;
              line-height: @height-input;
              margin-right: @spacing-row-base;
              padding: 0 @spacing-row-base;
              border-radius: @border-radius-sm;
              cursor: pointer;
              &.active {
                font-weight: bold;
                background: @color-primary;
                color: @text-color-inverse;
              }
            }
          }
          // 输入框
          .el-input {
             width: @width-input;
            .el-input__inner {
              height: @height-input;
              line-height: @height-input;
            }
            .el-input__icon {
              line-height: @height-input;
            }
          }
          .el-input__suffix {
            right: -2px;
          }
          // 勾选框
          .el-checkbox__label {
            font-size: @font-size-ctent;
            padding-left: @spacing-row-mini;
          }
          // 日期选择
          .el-date-editor {
            &.el-input__inner {
              padding-right: 15px;
              width: calc(@width-input * 2 + @spacing-row-base + @width-label + @spacing-row-mini);
            }
            &.mini {
              &.el-input__inner {
                width: auto;
              }
            }
          }
        }
      }
      &.search-btns, &.search-extend {
        .el-button {
          height: @height-input;
          line-height: @height-input;
          padding: 0 @spacing-row-sm;
        }
        .el-button+.el-button {
          margin-left: @spacing-row-mini;
        }
      }
      &.search-btns {
        .el-button+.el-button {
          margin-left: @spacing-row-mini;
        }
      }
      &.search-extend {
        flex: 1;
        display: flex;
        flex-direction: row-reverse;
        .search-wrap {
          margin-right: 0;
        }
        .el-button {
          margin-left: @spacing-row-mini;
        }
      }
    }
  }
  // 左中右结构
  .ulink-table-center {
    flex: 1;
    display: flex;
    flex-direction: row;
    margin: @spacing-col-base @spacing-row-base;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    .width-flex {
      flex: 1;
    }
    .width-shrink {
      flex-shrink: 0;
    }
    .width-middle {
      flex-shrink: 0;
      width: 280px;
    }
    .width-small {
      flex-shrink: 0;
      width: 220px;
    }
    .width-large {
      flex-shrink: 0;
      width: 430px;
    }
    .border-left {
      border-left: 1px solid @uni-border-color-td;
    }
    .border-right {
      border-right: 1px solid @uni-border-color-td;
    }
    .ulink-table-body {
      padding: 0;
    }
    .ulink-table-search {
      padding-bottom: @spacing-col-base;
    }
  }
  // 表格
  .ulink-table-body-print {
    @border: 2px solid #555;
    .cellClass {
      .cell {
        width: auto;
        p {
          text-align: center;
        }
      }
    }
    .el-table {
      border: @border;
    }
    .ulink-table-base.el-table th {
      color: #555;
      background: #fff;
    }
    .el-table--border {
      th, td {
        border-left: @border;
        border-bottom: @border;
        border-right: none;
      }
      tr:first-child th:first-child {
        border-left: none;
      }
      tr td:first-child {
        border-left: none;
      }
      tr:last-child td {
        border-bottom: none;
      }
      th.gutter:last-of-type {
        border: none;
      }
      thead tr:last-child {
        th.gutter:last-of-type {
          border-bottom: @border;
        }
      }
      &::after {
        width: 0;
      }
      .el-table__empty-block {
        border: none;
      }
    }
  }
  // 分页
  .ulink-table-page {
    flex-shrink: 0;
    text-align: right;
    padding: @spacing-col-base @spacing-row-base;
    width: 100%;
    box-sizing: border-box;
    height: 56px;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    box-sizing: border-box;
    background: @bg-color;
    .el-pagination {
      padding: 0;
    }
  }

  // 预览
  .ulink-table-excel {
    // @border: 1px solid @uni-border-color-td;
    @border: 1px solid #555;
    margin: @spacing-col-base @spacing-row-base;
    flex-shrink: 0;
    flex: 1;
    box-sizing: border-box;
    overflow-y: auto;
    border: @border;
    table {
      width: 100%;
      border-spacing: 0;
      border-collapse: collapse;
      tr {
        &:first-child {
          td {
            height: @height-menu;
            border-top: none;
            background-color: #e3e5e9;
            // background-color: @bg-color-thead;
            font-size: 15px;
            // font-size: @font-size-mini;
            // color: rgb(144, 147, 153);
            font-weight: bold;
          }
        }
        &:last-child {
          td {
            // border-bottom: none;
          }
        }
        td {
          border: @border;
          padding: @spacing-col-mini+2px @spacing-row-mini;
          color: @text-color;
          font-size: @font-size-ctent;
          height: @height-td;
          box-sizing: border-box;
          white-space: nowrap;
          border-spacing: 0;
          &:first-child {
            border-left: none;
          }
          &:last-child {
            border-right: none;
          }
        }
      }
    }
  }
  // tab
  .ulink-tab-body {
    flex-shrink: 0;
    width: 100%;
    flex: 1;
    box-sizing: border-box;
    overflow-y: auto;
    &::-webkit-scrollbar {
      display: none;
    }
    .el-tabs {
      .el-tabs__active-bar {
        width: 3px;
      }
      .el-tabs__header {
        margin-right: 0 !important;
      }
      .el-tabs__item {
        font-weight: normal;
        font-size: @font-size-ctent;
        padding: 0 @spacing-row-base;
      }
      .el-tabs__nav-wrap::after {
        background-color: transparent;
      }
    }
  }
  // 时间轴
  .ulink-line-body {
    flex-shrink: 0;
    width: 100%;
    flex: 1;
    box-sizing: border-box;
    overflow-y: auto;
    min-height: @height-content;
    .el-timeline {
      padding-top: @spacing-col-base;
      padding-inline-start: @spacing-row-base;
    }
  }
  // 表单
  .ulink-form-body {
    flex-shrink: 0;
    width: 100%;
    flex: 1;
    box-sizing: border-box;
    overflow-y: auto;
    min-height: @height-content;
    padding: @spacing-col-base @spacing-row-base;
  }
  .ulink-form-submit {
    text-align: right;
    padding: @spacing-col-base @spacing-row-base;
    width: 100%;
    box-sizing: border-box;
    height: 56px;
    max-width: 1160px;
  }
}


.ulink-cell-height {
  &.el-table td .cell {
    line-height: 28px !important;
  }
}

.ulink-table-opes {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ulink-table-form {
  .ud-edit-item {
    width: 100% !important;
  }
  .cell {
    width: auto !important;
  }
}

// 基本表格
.ulink-table-base {
  .el-button+.el-button {
    margin-left: 0px !important;
  }
  &.ulink-table--wrap {
    &.el-table {
      .cell {
        white-space: normal;
      }
    }
  }
  &.el-table--border {
    border-bottom: 1px solid @uni-border-color-out;
  }
  .checkbox-first {
    .el-checkbox__label {
      display: none;
    }
  }
  p {
    margin: 0 !important;
  }
  .dropdown-button {
    [class^=el-icon-] {
      margin-left: -5px;
    }
  }
  &.el-table, .el-table {
    font-size: @font-size-ctent;
    // 选中高亮
    @bg-color-highlight: mix(@color-primary, white, 9%);
    @bg-color-error: mix(@color-danger, white, 7%);
    @bg-color-even: #eeeeee;
    // 选中高亮
    .highlight-border-left {
      position: relative;
      td {
        &:first-child {
          position: relative;
          &:before {
            content: "";
            position: absolute;
            top: 0px;
            left: 0px;
            bottom: 0px;
            width: 3px;
            background-color: @color-primary;
          }
        }
      }
    }
    .highlight-border-all {
      box-shadow: inset 0 0 10px  mix(@color-primary, white, 100%);
      &.hover-row td {
        background: transparent !important;
      }
      &:hover > td {
        background: transparent !important;
      }
    }
    .highlight {
      .highlight(@bg-color-highlight)
    }
    .error {
      .highlight(@bg-color-error)
    }
    .warning {
      .highlight(mix(@color-warning, white, 9%))
    }
    .even {
      .highlight(@bg-color-even)
    }
    &:before {
      height: 0;
    }
    th {
      padding: 0;
      height: @height-menu;
      background-color: @bg-color-thead;
      background-image: none;
      box-sizing: border-box;
      font-weight: normal;
      font-size: @font-size-mini;
      .cell {
        padding: 0 @spacing-row-mini;
      }
      &.cell-width100 {
        .cell {
          width: 100%;
          box-sizing: border-box;
        }
      }
    }
    td {
      padding: 0;
      height: @height-td;
      color: @text-color;
      &.text-clamp-cell {
        .cell {
          max-width: 100%;
          overflow: hidden;
        }
      }
      .cell {
        padding: @spacing-col-mini+2px @spacing-row-mini;
      }
      &.cell-width100 {
        .cell {
          width: 100%;
          box-sizing: border-box;
        }
      }
      &:first-child .cell {
        padding: @spacing-col-mini+2px @spacing-row-mini;
      }
    }
    .el-table__empty-block {
      border-bottom: 1px solid @uni-border-color-out;
    }
    // 表格宽度自适应
    .cell, th>.cell {
      white-space: nowrap;
      width: fit-content;
    }
    td.is-right, th.is-right, td.is-center, th.is-center {
      .cell {
        width: auto;
      }
    }
  }
  &.larger {
    td {
      height: @height-td*1.4;
    }
  }
}

// 表格内的排序
.ulnik-table-insort {
  display: flex;
  align-items: center;
  .sort {
    width: 15px;
    transform: scale(.8);
    cursor: pointer;
    margin-right: @spacing-row-mini;
  }
}

// 带输入编辑框的表格
.ulink-table-sm {
  p {
    margin: 0;
  }
  &.el-table {
    font-size: @font-size-ctent;
    &:before {
      height: 0;
    }
    .cell {
      line-height: 1;
    }
    th {
      padding: 0 @spacing-row-mini;
      height: @height-menu;
      background-color: @bg-color-thead;
      box-sizing: border-box;
      .cell {
        padding: 0 0;
      }
    }
    td {
      padding: 0 @spacing-row-mini;
      .cell {
        padding: 0;
      }
      &:first-child .cell {
        padding: 0;
      }
    }
  }
  .el-select {
    width: 100%;
  }
  .el-input {
    font-size: @font-size-ctent;
    .el-input__inner {
      border: none;
      height: 22px + @spacing-col-mini;
      padding: 0 @spacing-row-mini;
    }
    .el-input__icon {
      line-height: 20px;
      width: 15px;
    }
    &.el-date-editor {
      .el-input__inner {
        padding-left: 22px;
      }
    }
  }
}
.spec-table {
  .el-checkbox-group {
    .el-checkbox {
      line-height: 20px !important;
    }
  }
  .el-table__body .cell {
    box-sizing: border-box;
    height: 37px;
    >div>span {
      display: inline-block;
      height: 16px !important;
      line-height: 16px !important;
      .el-checkbox__inner {
        height: 14px !important;
        line-height: 14px !important;
      }
    }
  }
}
.ulink-table-search--sm {
  .el-input__inner {
    padding: 0 @spacing-row-sm;
  }
}

.my-input,
.my-input-sc {
  width: 100px !important;
  display: inline-block;
  box-sizing: border-box;
  height: calc(@font-size-base * 2.8);
  line-height: calc(@font-size-base * 2.6);
  -webkit-appearance: none;
  color: #606266;
  font-size: inherit;
  outline: none;
  padding: 0 @spacing-col-sm;
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  width: 100%;
  vertical-align: middle;
  text-align: center;
  border-radius: @border-radius-mini * 2;
  border: 1px solid #DCDFE6;
}
.my-input {
  border-color: transparent;
}
.my-input-sc {
  border-color: #DCDFE6;
  background-color: #FFFFFF;
  background-image: none;
}
// ve-table
.ve-table-wrap {
  &.ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content thead.ve-table-header tr.ve-table-header-tr th.ve-table-header-th {
    background-color: @bg-color-thead;
    color: @text-color-thead;
    font-size: @font-size-mini;
    padding: @spacing-col-sm * .8;
  }
  &.ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-body-tr td.ve-table-body-td,
  &.ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-expand-tr td.ve-table-body-td {
    padding: @spacing-col-sm * .8;
  }
  &.ve-table .ve-table-container .ve-table-border-y th,
  &.ve-table .ve-table-container .ve-table-border-y td {
    border-color: @uni-border-color-td;
  }
  &.ve-table,
  &.ve-table .ve-table-container {
    height: 100% !important;
  }
  &.ve-table.ve-table-border-around .ve-table-container table.ve-table-content.ve-table-border-x tr:last-child:not(:first-child) > td {
    border-bottom: 1px solid @uni-border-color-td !important;
  }
  &.ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content thead.ve-table-header .ve-table-header-tr .ve-table-header-th .ve-table-sort {
    line-height: @font-size-mini;
  }
  &.ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-body-tr td.ve-table-body-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-expand-tr td.ve-table-body-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-body-tr td.ve-table-expand-td, .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content tbody.ve-table-body tr.ve-table-expand-tr td.ve-table-expand-td {
    user-select: text;
  }
  .btns-wrap {
    .el-button + .el-button {
      margin-left: 0;
    }
  }
}
.empty-data {
  position: absolute;
  top: 20px;
  height: calc(100% - 30px) !important;
  width: 100%;
}
// echarts tooltip table
.pop-table {
  .has-border-btm { border-bottom: 1px solid @uni-border-color-td; }
  tr {
    th,
    td {
      padding: @spacing-col-sm * .5 @spacing-col-sm * 1.5;
      text-align: right;
      &.is-left {
        text-align: left;
      }
    }
  }
}

.highlight (@color) {
  background-color: @color !important;

  td {
    background-color: @color !important;
  }

  &.hover-row td {
    background: @color !important;
  }

  &:hover > td {
    background: @color !important;
  }
}

.table-wrap, .ulink-table-base {
  @keyframes glow-success {
    0% {
      box-shadow: 0 0 5px mix(@color-success, white, 9%), inset 0 0 5px mix(@color-success, white, 40%), 0 1px 0  mix(@color-success, white, 100%);
    }
    100% {
      box-shadow: 0 0 20px  mix(@color-success, white, 60%), inset 0 0 10px  mix(@color-success, white, 80%), 0 1px 0  mix(@color-success, white, 100%);
    }
  }
  @keyframes glow-primary {
    0% {
      box-shadow: 0 0 5px mix(@color-primary, white, 9%), inset 0 0 5px mix(@color-primary, white, 40%), 0 1px 0  mix(@color-primary, white, 100%);
    }
    100% {
      box-shadow: 0 0 20px  mix(@color-primary, white, 60%), inset 0 0 10px  mix(@color-primary, white, 80%), 0 1px 0  mix(@color-primary, white, 100%);
    }
  }
  @keyframes glow-warning {
    0% {
      box-shadow: 0 0 5px mix(@color-warning, white, 5%), inset 0 0 5px mix(@color-warning, white, 30%), 0 1px 0  mix(@color-warning, white, 100%);
    }
    100% {
      box-shadow: 0 0 20px  mix(@color-warning, white, 60%), inset 0 0 10px  mix(@color-warning, white, 80%), 0 1px 0  mix(@color-warning, white, 100%);
    }
  }
  .shining-warning {
    border-radius: 50px;
    animation: glow-warning 800ms ease-out infinite alternate;
    &.highlight {
      .highlight(transparent)
    }
  }
  .shining-primary {
    border-radius: 50px;
    animation: glow-primary 800ms ease-out infinite alternate;
    &.highlight {
      .highlight(transparent)
    }
  }
  .shining-success {
    border-radius: 50px;
    animation: glow-success 800ms ease-out infinite alternate;
    &.highlight {
      .highlight(transparent)
    }
  }
}
